Track deletion timestamp in LinksDeletionUpdate
[lhc/web/wiklou.git] / includes / jobqueue / jobs / DeleteLinksJob.php
index e5357ce..ca5d534 100644 (file)
@@ -48,8 +48,10 @@ class DeleteLinksJob extends Job {
                        return false;
                }
 
+               $timestamp = isset( $this->params['timestamp'] ) ? $this->params['timestamp'] : null;
+
                $page = WikiPage::factory( $this->title ); // title when deleted
-               $update = new LinksDeletionUpdate( $page, $pageId );
+               $update = new LinksDeletionUpdate( $page, $pageId, $timestamp );
                DataUpdate::runUpdates( [ $update ] );
 
                return true;